package com.example.music.service.impl;

import com.example.music.domain.Orders;
import com.example.music.mapper.OrdersMapper;
import com.example.music.service.IOrdersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrdersServiceImpl implements IOrdersService {
    @Autowired
    private OrdersMapper ordersMapper;
    public List<Orders> getOrders(){
        return ordersMapper.getOrders();
    }

    public Orders selectOrdersById(Long id){
        return ordersMapper.selectOrdersById(id);
    }

    public int insertOrders(Orders order){
        return ordersMapper.insertOrders(order);
    }

    public int updateOrders(Orders order){
        return ordersMapper.updateOrders(order);
    }

    public int deleteOrdersById(Long id){
        return ordersMapper.deleteOrdersById(id);
    }
}
